package com.example.shengyin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
import java.util.List;

@Data
@Validated
@ApiModel("招聘工作类")
public class Job {
    @ApiModelProperty("编号")
    private Integer id;

    @ApiModelProperty("标题")
    @NotNull(message = "工作标题不能为空")
    private String jobtitle;

    @NotBlank(message = "工作地点不能为空")
    @ApiModelProperty("工作地址")
    private String pos;

    @NotNull(message = "数量不能为空")
    @ApiModelProperty("招聘数量")
    private Integer nums;

    @NotNull(message = "工作类型不能为空")
    @ApiModelProperty("工作类型")
    private String jobtype;


    @ApiModelProperty("发布时间")
    private Timestamp posttime;

    @NotNull(message = "发布人不能为空")
    @ApiModelProperty("发布人")
    private String poster;

    @ApiModelProperty("招聘要求")
    private String content;

    @ApiModelProperty("岗位应聘者集合")
    List<Seeker> jobSeeker;
}
